plat/arm/sgi: allow value of PLAT_MAX_PWR_LVL to be platform specific
authorChandni Cherukuri <[email protected]>
Tue, 16 Oct 2018 08:41:34 +0000 (14:11 +0530)
committerChandni Cherukuri <[email protected]>
Tue, 27 Nov 2018 05:02:55 +0000 (10:32 +0530)
For platforms with multi-threaded CPUs, the number of power domains
supported would be more than the value currently defined by
PLAT_MAX_PWR_LVL. So move the PLAT_MAX_PWR_LVL macro to platform
specific code and let the platform define the number of power domain
levels.

Change-Id: I21c0682e62b397860b2999031a0c9c5ce0d28eed
Signed-off-by: Chandni Cherukuri <[email protected]>
plat/arm/board/sgi575/include/platform_def.h
plat/arm/board/sgiclarka/include/platform_def.h
plat/arm/css/sgi/include/sgi_base_platform_def.h

index 394a2e829145fc1e54f0741d7c605f3aa9523798..16e2898de04c3caba06c71cd36866a9f76f8b414 100644 (file)
@@ -23,4 +23,6 @@
 /* System power domain level */
 #define CSS_SYSTEM_PWR_DMN_LVL         ARM_PWR_LVL2
 
+#define PLAT_MAX_PWR_LVL               ARM_PWR_LVL1
+
 #endif /* PLATFORM_DEF_H */
index 6de15c43271bce053e67d70239262b2c39ee708a..39907e8bc72a8b3838cdcd740082acbaa7dd233e 100644 (file)
@@ -23,4 +23,6 @@
 /* System power domain level */
 #define CSS_SYSTEM_PWR_DMN_LVL         ARM_PWR_LVL2
 
+#define PLAT_MAX_PWR_LVL               ARM_PWR_LVL1
+
 #endif /* PLATFORM_DEF_H */
index 1395373ceb83ef17e9891368b5ccb93a6a459afb..8705d63b107f686ee04f7019733323f7ce0b8475 100644 (file)
 #define PLAT_ARM_NSRAM_BASE            0x06000000
 #define PLAT_ARM_NSRAM_SIZE            0x00080000      /* 512KB */
 
-#define PLAT_MAX_PWR_LVL               U(1)
-
 #define PLAT_ARM_G1S_IRQ_PROPS(grp)    CSS_G1S_IRQ_PROPS(grp)
 #define PLAT_ARM_G0_IRQ_PROPS(grp)     ARM_G0_IRQ_PROPS(grp)